//---------------------------------------------------------------------------

#ifndef LoginDlgH
#define LoginDlgH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <DB.hpp>
#include <DBTables.hpp>

#include "UserBridge.h"
#include <NMsmtp.hpp>
#include <Psock.hpp>
#include <IdBaseComponent.hpp>
#include <IdComponent.hpp>
#include <IdIMAP4Server.hpp>
#include <IdTCPServer.hpp>
#include <IdMessageClient.hpp>
#include <IdSMTP.hpp>
#include <IdTCPClient.hpp>
#include <IdTCPConnection.hpp>
#include <IdMessage.hpp>

//---------------------------------------------------------------------------
class TfrmLoginDlg : public TForm
{
__published:	// IDE-managed Components
        TPanel *pnlMain;
        TLabel *lblPassword;
        TLabel *lblUserName;
        TEdit *edtPassword;
        TEdit *edtUsername;
        TBitBtn *btnOk;
        TBitBtn *btnCancel;
        void __fastcall btnOkClick(TObject *Sender);
        void __fastcall FormDestroy(TObject *Sender);
private:	// User declarations
        TUserBridge * bridge;
        int attempts;

public:		// User declarations
        __fastcall TfrmLoginDlg(TComponent* Owner, TDatabase* database);

        TUser* user;
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmLoginDlg *frmLoginDlg;
//---------------------------------------------------------------------------
#endif
